<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>华中师范大学附属孝感幼儿园网上招生系统</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/Public/adminlte/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/Public/adminlte/dist/css/AdminLTE.min.css">

  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect.
  -->
  <link rel="stylesheet" href="/Public/adminlte/dist/css/skins/skin-blue.min.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- Main Header -->
  <header class="main-header">

    <!-- Logo -->
    <a href="/" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini">ZS</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg">孝感幼儿园招生系统</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle</span>
      </a>
      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Sidebar toggle button-->
		 
          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <!-- The user image in the navbar-->
              <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="user-image" alt="User Image">
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs"><?php echo (cookie('name')); ?></span>
            </a>
            <ul class="dropdown-menu">
              <!-- The user image in the menu -->
              <li class="user-header">
                <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="img-circle" alt="User Image">

                <p>
                  <?php echo (cookie('name')); ?>——<?php echo (cookie('userid')); ?>
                  <small>上次登录时间：<?php echo (cookie('logindate')); ?></small>
                </p>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="/index.php/Home/Index/profile" class="btn btn-default btn-flat">个人信息</a>
                </div>
                <div class="pull-right">
                  <a href="/index.php/Home/login/logout" class="btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
          
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- Sidebar user panel (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p><?php echo (cookie('name')); ?></p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>

      <!-- search form (Optional) -->
      <form action="/index.php/Home/Index/viewstu" method="post" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="sname" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>
      <!-- /.search form -->

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu" id="side-menu">
        <li class="header">菜单栏</li>
        <!-- Optionally, you can add icons to the links -->
        <li class="<?php echo 3==1?'active':'1';;?>"><a href="/index.php/Home/Index/"><i class="fa fa-dashboard"></i> <span>主页</span></a></li>

      

        <li class="treeview <?php echo 3==2?'active':'';?>">
          <a href=""><i class="fa fa-user"></i> <span>学生管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/index.php/Home/Index/addstu"><i class="fa fa-circle-o"></i> 添加学生</a></li>
            <li><a href="/index.php/Home/Index/stulist"><i class="fa fa-circle-o"></i> 学生列表</a></li>
			<li><a href="/index.php/Home/Index/searchstu"><i class="fa fa-circle-o"></i> 查找学生</a></li>
          </ul>
		</li>

		
<?php if($_SESSION['sfid']== 1): ?><li class="treeview <?php echo 3==3?'active':'1';?>">
          <a href=""><i class="fa fa-user-secret"></i> <span>老师管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/index.php/Home/Index/addth"><i class="fa fa-circle-o"></i> 添加老师</a></li>
            <li><a href="/index.php/Home/Index/thlist"><i class="fa fa-circle-o"></i> 老师列表</a></li>
          </ul>
        </li><?php endif; ?>
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper" id="mcont">

    <!-- Main content -->
    <section class="content">

	  <div class="row">
        <div class="col-xs-12">
          <div class="box box-info">
            <div class="box-header">
              <h3 class="box-title">学生列表</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
              <table class="table table-hover">
               <tbody><tr>
					<th>ID</th>
                  <th>姓名</th>
                  <th>性别</th>
                  <th>出生日期</th>
                  <th>报读班级</th>
                  <th>父母姓名</th>
				  <th>手机号码</th>
				  <th>工作单位</th>
				  <th>家庭住址</th>
				  <th>填报老师</th>
				  <th>更新日期</th>
				  
                </tr>
		<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr>
		<td><?php echo ($i+10*$page["page"]); ?></td>
		<td><?php echo ($list["name"]); ?></td>
		<td><?php echo ($list["sex"]); ?></td>
		<td><?php echo ($list["birthday"]); ?></td>
		<td><?php echo ($list["class"]); ?></td>
		<td><?php echo ($list["parentname"]); ?></td>
		<td><?php echo ($list["telephone"]); ?></td>
		<td><?php echo ($list["workplace"]); ?></td>
		<td><?php echo ($list["address"]); ?></td>
		<td><?php echo ($list["zserid"]); ?></td>
		<td><?php echo ($list["supdate"]); ?></td>
		
	</tr><?php endforeach; endif; else: echo "" ;endif; ?>


              </tbody></table>
            </div>
            <!-- /.box-body -->

			<div class="box-footer clearfix">
				<ul class="pagination pagination-sm no-margin pull-left">
					共有  <?php echo ($page["cont"]); ?> 条记录
				</ul>
              <ul class="pagination pagination-sm no-margin pull-right">

				<?php $__FOR_START_12070__=0;$__FOR_END_12070__=$page["list"];for($i=$__FOR_START_12070__;$i < $__FOR_END_12070__;$i+=1){ if($page["page"] == $i): ?><li class="active"><a href="/index.php/Home/Index/zstj/<?php echo ($page["uid"]); ?>/<?php echo ($i); ?>"><?php echo ($i+1); ?></a></li>
					<?php else: ?><li><a href="/index.php/Home/Index/zstj/<?php echo ($page["uid"]); ?>/<?php echo ($i); ?>"><?php echo ($i+1); ?></a></li><?php endif; } ?>
              </ul>
            </div>
          </div>
          <!-- /.box -->
        </div>
      </div>

    </section>
    <!-- /.content -->

    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 2.2.3 -->
<script src="/Public/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/Public/adminlte/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/Public/adminlte/dist/js/app.js"></script>

</body>
</html>